package com.ybb.production.domain;

import com.yubb.common.annotation.Excel;
import com.yubb.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 生产工序对象 garment_production_process
 *
 * @author ruoyi
 * @date 2023-09-08
 */
@Getter
public class GarmentProductionProcess extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工序id")
    private Long id;
    @ApiModelProperty(value = "订单id")
    @Excel(name = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "工序名称")
    @Excel(name = "工序名称")
    private String processName;

    @ApiModelProperty(value = "单价")
    @Excel(name = "工序单价")
    private String price;

    @ApiModelProperty(value = "数量")
    @Excel(name = "工序数量")
    private Long quantity;

    @ApiModelProperty(value = "部门id")
    @Excel(name = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "序号")
    @Excel(name = "序号")
    private Long sequence;

    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public void setSequence(Long sequence) {
        this.sequence = sequence;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("processName", getProcessName())
                .append("price", getPrice())
                .append("quantity", getQuantity())
                .append("deptId", getDeptId())
                .append("sequence", getSequence())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
